package player.miniplayer;

import java.awt.Color;
import java.awt.Graphics;
import java.awt.Panel;
import java.awt.peer.ComponentPeer;

import javax.swing.BorderFactory;
import javax.swing.border.Border;

import net.miginfocom.swing.MigLayout;

public class VideoPanel extends Panel{
	private static final long serialVersionUID = -4136313907256838704L;
	long wid=0;
	Border bd;
	VideoCanvaeM VideoCanvaeM;
	VideoPanel(){
		super();
		this.setLayout(new MigLayout("insets 15 1 1 1"));
		VideoCanvaeM=new VideoCanvaeM();
		//this.setBackground(new Color(20,20,20));
		bd=BorderFactory.createLineBorder(new Color(120,200,180));
		add(VideoCanvaeM,"width :10240: ,height :10240:");
	}
	
	long getWid(){
		return VideoCanvaeM.getWid();
	}
	
	public void paint(Graphics g){
		g.setColor(java.awt.Color.gray);
		g.fillRect(0, 0, getWidth(), getHeight());
		bd.paintBorder(this, g, 0, 0, getWidth(), getHeight());
	}
	
}
